package com.jwgf.smarowindingmachine_unity.ui;

import com.jwgf.smarowindingmachine_unity.R;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;


public class CustomWarningDialog extends Dialog implements OnClickListener {
	Context mCtx;	
	public CustomWarningDialog(Context context) {
		super(context, R.style.AppTheme);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.dialog_custom_warnning);
		mCtx = context;	
		Button btn_close = (Button) findViewById(R.id.btn_warning_cancel);
		btn_close.setOnClickListener(this);
	}	
	
	@Override
	public void onClick(View v) {
		int id = v.getId();
		switch (id) {
		case R.id.btn_warning_cancel: {
			this.dismiss();
			break;
			}
		}
	}
}
